package com.example.demo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.RolePermissions;
import com.example.demo.service.RolePermissionsService;
import com.example.demo.mapper.RolePermissionsMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author GJC
* @description 针对表【role_permissions】的数据库操作Service实现
* @createDate 2025-01-12 23:14:37
*/
@Service
public class RolePermissionsServiceImpl extends ServiceImpl<RolePermissionsMapper, RolePermissions>
    implements RolePermissionsService{
//获取角色权限列表
public List<RolePermissions> getList(int role_id) {
    QueryWrapper<RolePermissions> queryWrapper = new QueryWrapper<>();
    queryWrapper.eq("role_id", role_id);
    return this.baseMapper.selectList(queryWrapper);
}
}




